export default {
    namespaced: true,
    state: {
        userInfo: {
            avatar_url: "https://avatars.githubusercontent.com/u/37494020?v=4&s=120",
            id: "60a0c0f24d20cb6afa6939f1",
            loginname: "tianguoyuan",
            success: true,
            token: "223bd9c5-7f42-4355-a897-daaf8594c174",
        },
        token: "223bd9c5-7f42-4355-a897-daaf8594c174",
    },
    mutations: {
        change_userInfo(state, value) {
            state.userInfo = value;
        },
        change_token(state, value) {
            state.token = value;
        },
    },
    actions: {
        userInfo_action({ commit }, params) {
            commit('change_userInfo', params);
        },
        token_action({ commit }, params) {
            commit('change_token', params);
        },
    }
}
